import pymongo
cli = pymongo.MongoClient("mongodb://localhost:27017/")
dblist = cli.list_database_names()
if "fffck" in dblist:
  print("fffck已存在")

mydb = cli["fffck"]
mycol = mydb["qwer"]
print(type(cli))
print(type(mydb))
print(type(mycol))
print(type(mycol.find()))
for x in mycol.find():
  print(x)
  print(type(x))